import request from '@/utils/request'

// 查询班子成员列表
export function listTeamPerson(query) {
  return request({
    url: '/partybuilding/TeamPerson/list',
    method: 'get',
    params: query
  })
}

// 查询班子成员详细
export function getTeamPerson(id) {
  return request({
    url: '/partybuilding/TeamPerson/' + id,
    method: 'get'
  })
}

// 新增班子成员
export function addTeamPerson(data) {
  return request({
    url: '/partybuilding/TeamPerson/add',
    method: 'post',
    data: data
  })
}

// 修改班子成员
export function updateTeamPerson(data) {
  return request({
    url: '/partybuilding/TeamPerson/edit',
    method: 'post',
    data: data
  })
}

// 删除班子成员
export function delTeamPerson(id) {
  return request({
    url: '/partybuilding/TeamPerson/remove/' + id,
    method: 'post'
  })
}
